package com.netmi.myjectpack.viewmodel;

import com.netmi.myjectpack.bean.UserInfo;

import java.math.BigDecimal;
import java.util.Random;

/**
 * 类描述：
 * 创建人：tgw
 * 创建时间：2020/8/26
 * 修改备注：
 */
public class StockLiveDataManager {

    public StockLiveDataManager(String updataData) {

    }

    public void requestPriceUpdates(SimplePriceListener listener) {
        if (listener != null) {
            UserInfo userInfo = new UserInfo();
            userInfo.setNickname("自定义livedata" + new Random().nextInt(100));
            listener.onPriceChanged(userInfo);
        }
    }

    public void removeUpdates(SimplePriceListener listener) {
        if (listener != null) {
            listener = null;
        }
    }

}
